import request from "@/utils/request";
export function getClassify(parentId) {
  return request({
    method: "get",
    url: "/api/v1/kbqa/classify",
    params: {
      parentId,
    },
  });
}
export function getClassifyDocs(params) {
  return request({
    method: "get",
    url: "/api/v1/kbqa/content",
    params,
  });
}
export function createClassfy(data) {
  return request({
    method: "post",
    url: "/api/v1/kbqa/create",
    data,
  });
}
export function updateClassfy(data) {
  return request({
    method: "post",
    url: "/api/v1/kbqa/update",
    data,
  });
}
export function searchDocs(data) {
  return request({
    method: "post",
    url: "/api/v1/kbqa/search",
    data,
  });
}
export function addDoc(data) {
  return request({
    method: "post",
    url: "/api/v1/kbqa/record",
    data,
  });
}
export function updateDoc(data) {
  return request({
    method: "post",
    url: "/api/v1/kbqa/updateDoc",
    data,
  });
}
export function delDoc(data) {
  return request({
    method: "post",
    url: "/api/v1/kbqa/delDoc",
    data,
  });
}
